/**
 * Copyright (c) 2013-Now http://dreamcode123321.com All rights reserved.
 */
package com.jeesite.modules.ab.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 服务反馈Entity
 * @author dc
 * @version 2020-08-15
 */
@Table(name="ab_feekback", alias="a", columns={
		@Column(name="back_code", attrName="backCode", label="back_code", isPK=true),
		@Column(name="user_name", attrName="userName", label="系统用户", isUpdate=false, isQuery=false),
		@Column(name="create_time", attrName="createTime", label="反馈时间",  isUpdate=false, isQuery=false),
		@Column(name="question_type", attrName="questionType", label="反馈问题"),
		@Column(name="feekback_type", attrName="feekbackType", label="反馈类型"),
		@Column(name="context", attrName="context", label="反馈意见", isQuery=false),
		@Column(name="contact_info", attrName="contactInfo", label="联系方式", isQuery=false),
		@Column(name="answer", attrName="answer", label="回复", isInsert=false, isQuery=false),
	}, orderBy="a.back_code DESC"
)
public class AbFeekback extends DataEntity<AbFeekback> {
	
	private static final long serialVersionUID = 1L;
	private String backCode;		// back_code
	private String userName;		// 系统用户
	private Date createTime;		// 反馈时间
	private String questionType;		// 反馈问题
	private String feekbackType;		// 反馈类型
	private String context;		// 反馈意见
	private String contactInfo;		// 联系方式
	private String answer;		// 回复
	
	public AbFeekback() {
		this(null);
	}

	public AbFeekback(String id){
		super(id);
	}
	
	public String getBackCode() {
		return backCode;
	}

	public void setBackCode(String backCode) {
		this.backCode = backCode;
	}
	
	@Length(min=0, max=45, message="系统用户长度不能超过 45 个字符")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Length(min=0, max=45, message="反馈问题长度不能超过 45 个字符")
	public String getQuestionType() {
		return questionType;
	}

	public void setQuestionType(String questionType) {
		this.questionType = questionType;
	}
	
	@Length(min=0, max=45, message="反馈类型长度不能超过 45 个字符")
	public String getFeekbackType() {
		return feekbackType;
	}

	public void setFeekbackType(String feekbackType) {
		this.feekbackType = feekbackType;
	}
	
	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}
	
	@Length(min=0, max=45, message="联系方式长度不能超过 45 个字符")
	public String getContactInfo() {
		return contactInfo;
	}

	public void setContactInfo(String contactInfo) {
		this.contactInfo = contactInfo;
	}
	
	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
}